package com.yqg.protection.controller.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.LocalDateTimeConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * projectName:xf-service1
 * author:zxf
 * time:2024/10/15 10:08
 * description:
 */
@Data
public class ImportRecordEquipmentOperateDto {

    @ExcelProperty(value = "单位ID", index = 0)
    @ApiModelProperty("单位id")
    private Long clientId;

    @ExcelProperty(value = "设备编号", index = 1)
    @ApiModelProperty("设备编号")
    private String equuipmentNo;

    @ExcelProperty(value = "系统类型", index = 2)
    @ApiModelProperty("系统类型")
    private String systemType;

    @ExcelProperty(value = "系统地址", index = 3)
    @ApiModelProperty("系统地址")
    private String systemAddress;

    @ExcelProperty(value = "操作类型", index = 4)
    @ApiModelProperty("操作类型")
    private String operateType;

    @ExcelProperty(value = "操作人", index = 5)
    @ApiModelProperty("操作人")
    private String operateName;

    @ExcelProperty(value = "操作时间", index = 6, converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("操作时间")
    private LocalDateTime dataTime;

    @ExcelProperty(value = "操作内容", index = 7)
    @ApiModelProperty("操作内容")
    private String content;
}
